﻿
using System;
using System.Collections.Generic;
using System.IO;
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.UI;



public interface ITouch
{
    float x { get;}
    float y { get;}
}
 
public interface IKeyboard
{
    char key { get;}
    void Show ();
    void Hide ();
}
 
public interface IAccelerometer
{
    float x { get;}
    float y { get;}
    float z { get;}
}




public class RFactory
{
#if PLATFORM_ANDROID
	static readonly public string PLATFORM = "Android";
#else
    static readonly public string PLATFORM = "IOS";
#endif

    private static object Create(string className)
    {
        string name = PLATFORM + className;
        Type type = Type.GetType(name);
        return Activator.CreateInstance(type);
    }

    public static ITouch CreateTouch()
    {
        return (ITouch) Create("Touch");
    }

    public static IKeyboard CreateKeyboard()
    {
        return (IKeyboard) Create("Keyboard");
    }

    public static IAccelerometer CreateAccelerometer()
    {
        return (IAccelerometer) Create("Accelerometer");
    }
}

public class aaa : MonoBehaviour
{
  public  List<int> s = new List<int>();
    private void Start()
    {
        for (int i = 0; i < 35; i++)
        {
            s.Add(i);
        }
        s.RemoveRange(30, s.Count - 30);

    }
}


